package mine

import (
	"github.com/gin-gonic/gin"
	"meituan/apps/mine/controllers"
	_ "meituan/apps/mine/models"
)

func IncludeOrderRouter(route *gin.RouterGroup, prefix string) {
	group := route.Group(prefix)
	{
		user := group.Group("/user")
		{
			user.GET("/", controllers.QueryUser)
			user.PUT("/", controllers.CreateUser)
			user.POST("/:id", controllers.UpdateUser)
			user.DELETE("/:id", controllers.DeleteUser)
			user.GET("/:id", controllers.UserInfo)
		}
	}
}
